package com.itheima.service;

import com.itheima.dto.EmpDto;
import com.itheima.dto.EmpLoginDto;
import com.itheima.mapper.EmpMapper;
import com.itheima.pojo.Dept;
import com.itheima.pojo.Emp;
import com.itheima.pojo.PageBean;
import com.itheima.pojo.Result;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 员工管理
 */
public interface EmpService {

    /*public PageBean<Emp> getByPage(Integer pageNum,Integer pageSize);*/


    public PageBean<Emp> getByPage(Integer pageNum, Integer pageSize, EmpDto dto);


    int deleteEmp(Integer[] ids);

    int insertEmp(Emp emp);

    Result login(EmpLoginDto dto);
}
